test: add test suites for 9 remaining tool files#218
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… typegenerate, typescript, and validate tools Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
a291712 to
0508d52
Compare
Summary
tests/tools/for tool files with zero coveragegetTools()definitions, happy path calls, error cases, and edge casesscaffold.test.ts,bundle.test.ts,theme.test.tsFiles Added
tests/tools/cdn.test.ts— cdn tool: schema defaults, invalid registry, missing packagetests/tools/composition.test.ts— composition tool: 1–4 tagNames valid range, boundary errorstests/tools/framework.test.ts— framework tool: detect_framework with empty/extra args, handler errorstests/tools/story.test.ts— story tool: tagName found/not found, empty CEM, multi-moduletests/tools/tokens.test.ts— tokens tool: category filter, find_token, missing query, unconfigured tokensPathtests/tools/typegenerate.test.ts— typegenerate tool: empty/multi-module CEM, component count, libraryIdtests/tools/typescript.test.ts— typescript tool: filePath validation, path traversal rejection, project diagnosticstests/tools/validate.test.ts— validate tool: valid HTML, oversized HTML rejection, missing required argsTest plan
🤖 Generated with Claude Code